package cn.xiyun.xiyuncc.feignClient;

import cn.xiyun.xiyuncc.domain.User;
import cn.xiyun.xiyuncc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-user")
public interface UserFeignClient {

    @RequestMapping(value = "/user/phoneToUser/{phone}", method = RequestMethod.GET)
    User phoneToUser(@PathVariable("phone") String phone);

    @RequestMapping(value = "/user/list", method = RequestMethod.GET)
    JSONResult list();
}
